package com.vdf.sisconsolid.persistencemodule.converter;

import java.util.ArrayList;
import java.util.List;

import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.persistencemodule.model.Service;

public class ServiceConverter {

	public static List<KeyValueBean> toServiceKeyValue(List<Service> serviceList) {
		List<KeyValueBean> serviceBeanList = new ArrayList<KeyValueBean>();
		for (Service service : serviceList) {
			KeyValueBean pBean = new KeyValueBean();
			pBean.setKey(service.getId());
			pBean.setValue(service.getName());
			serviceBeanList.add(pBean);
		}
		return serviceBeanList;
	}

}
